package cn.cau.epidemicsurveysystem.vo;

import cn.cau.epidemicsurveysystem.bean.EpidTemplateBean;
import cn.cau.epidemicsurveysystem.bean.EpidTemplateQuestionBean;

import java.util.List;

/**
 * @projectName: gp2022
 * @package: cn.cau.epidemicsurveysystem.vo
 * @className: TemplateVO
 * @author: zy
 * @description: 将一个模板及其所有的问题封装为一个视图对象
 * @date: 2022/2/28 17:15
 * @version: 1.0
 */
public class TemplateVO {
    private EpidTemplateBean template;
    private List<QuestionVO> questions;

    public TemplateVO(EpidTemplateBean template, List<QuestionVO> questions) {
        this.template = template;
        this.questions = questions;
    }

    public EpidTemplateBean getTemplate() {
        return template;
    }

    public void setTemplate(EpidTemplateBean template) {
        this.template = template;
    }

    public List<QuestionVO> getQuestions() {
        return questions;
    }

    public void setQuestions(List<QuestionVO> questions) {
        this.questions = questions;
    }
}
